<template>
  <a-modal :maskClosable="false"
    :title="title"
    :width="1280"
    :visible="visible"
    :confirmLoading="confirmLoading"
    @ok="handleOk"
    @cancel="handleCancel"
    cancelText="关闭">
    <a-spin :spinning="confirmLoading">
      <a-table
        style="margin-top: 10px"
        size="middle"
        bordered
        rowKey="id"
        :columns="columns"
        :dataSource="dataSource"
        :pagination="ipagination"
        :loading="loading"
        @change="handleTableChange">
      </a-table>
    </a-spin>
  </a-modal>
</template>

<script>
import { httpAction, putAction, getAction, postAction } from '@api/manage'
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import { pushIfNotExist } from '@/utils/util'
import EmployeeDialog from '@views/his/dialog/EmployeeDialog'

export default {
  name: 'HHisInterviewPlanLogModal',
  mixins: [JeecgListMixin],
  components: {
    EmployeeDialog
  },
  data() {
    return {
      title: '操作',
      visible: false,
      queryParam: { },
      disableMixinCreated: true,
      layout: {
        labelCol: { span: 6 },
        wrapperCol: { span: 14 }
      },
      confirmLoading: false,
      url: {
        list: '/store/order/order/evaluation'
      },
      columns: [
        {
          title: '服务商品',
          align: 'center',
          dataIndex: 'goodsName',
          width: 130
        },
        {
          title: '购买数量',
          align: 'center',
          dataIndex: 'totalNum',
          width: 180
        },
        {
          title: '使用方法',
          align: 'center',
          dataIndex: 'instructions',
          width: 180
        },
      ]
    }
  },
  created() {

  },

  methods: {
    view(record) {
      const that = this
      that.visible = true
      that.queryParam.orderNo = record.orderNo
      that.loadData()
    },
    close() {
      this.$emit('close')
      this.visible = false
    },
    handleOk() {
      const that = this
      that.close()
    },
    handleCancel() {
      this.close()
    }
  }
}
</script>

<style scoped>

</style>